-- GENERATED SPELL FOR [Tempest Warder] --


function spell0_34015(pUnit, Event) --@Overcharge,Self--
pUnit:FullCastSpellOnTarget(64379,pUnit)
pUnit:RegisterEvent('Sorts_34015', 0, 1)
end

function spell1_34015(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(64363,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34015', 0, 1)
end

function Sorts_34015(pUnit, Event)
local choix_sorts_34015 = math.random(0, 1)
if choix_sorts_34015 == 0 then
pUnit:RegisterEvent('spell0_34015', 1, 1)
end
if choix_sorts_34015 == 1 then
pUnit:RegisterEvent('spell1_34015', 1, 1)
end
end

function mob34015_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34015', math.random(1500, 3000), 1)
end

function mob34015_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34015_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34015_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34015, 1, 'mob34015_Action')
RegisterUnitEvent(34015, 2, 'mob34015_Leave')
RegisterUnitEvent(34015, 3, 'mob34015_Kill')
RegisterUnitEvent(34015, 4, 'mob34015_Die')
